﻿using ISSMoviePlex.DAL.Repositories;
using ISSMoviePlex.DAL.Models;

namespace ISSMoviePlex.BLL
{
    public class RatingBLL
    {
        private readonly RatingRepository _ratingRepository;
        public RatingBLL()
        {
            _ratingRepository = RatingRepository.Instance;
            _ratingRepository.Initialize();
        }
        public void AddRating(Rating rate)
        {
            _ratingRepository.Add(rate);
            _ratingRepository.Save();
        }
    }
}
